package com.fingard.dsp.bank.reqrespobj.qryrefund.detail;

import com.fingard.text.StringHelper;
import com.fingard.xml.XmlTextWriter;

public class RetAtsRefundDetail {
    /**
     * <DetailRecord>
     * <AskNum></AskNum>
     * <StrAbstract></StrAbstract>
     * <PayAct></PayAct>
     * <PayActName></PayActName>
     * <RecBank></RecBank>
     * <RecAct></RecAct>
     * <RecActName></RecActName>
     * <Amount></Amount>
     * <RecAreaName></RecAreaName>
     * <RecBankLocationsName></RecBankLocationsName>
     * <PaySpd></PaySpd>
     * <Memo></Memo>
     * <RefundTicketDate></RefundTicketDate>
     * <RefundTicketReason></RefundTicketReason>
     * <ReqBatchNO></ReqBatchNO>
     * <SubmitTime></SubmitTime>
     * </DetailRecord>
     */
    public String askNum;
    public String strAbstract;
    public String payAct;
    public String payActName;
    public String recBank;
    public String recAct;
    public String recActName;
    public String amount;
    public String recAreaName;
    public String recBankLocationsName;
    public String paySpd;
    public String memo;
    public String refundTicketDate;
    public String refundTicketReason;
    public String reqBatchNO;
    public String submitTime;

    public void writeXE(XmlTextWriter p_writer) {
        p_writer.writeElementString("AskNum", askNum);
        if (StringHelper.hasAnyChar(strAbstract)) {
            p_writer.writeElementString("StrAbstract", strAbstract);
        }
        if (StringHelper.hasAnyChar(payAct)) {
            p_writer.writeElementString("PayAct", payAct);
        }
        if (StringHelper.hasAnyChar(payActName)) {
            p_writer.writeElementString("PayActName", payActName);
        }
        if (StringHelper.hasAnyChar(recBank)) {
            p_writer.writeElementString("RecBank", recBank);
        }
        if (StringHelper.hasAnyChar(recAct)) {
            p_writer.writeElementString("RecAct", recAct);
        }
        if (StringHelper.hasAnyChar(recActName)) {
            p_writer.writeElementString("RecActName", recActName);
        }
        p_writer.writeElementString("Amount", amount);
        if (StringHelper.hasAnyChar(recAreaName)) {
            p_writer.writeElementString("RecAreaName", recAreaName);
        }
        if (StringHelper.hasAnyChar(recBankLocationsName)) {
            p_writer.writeElementString("RecBankLocationsName", recBankLocationsName);
        }
        if (StringHelper.hasAnyChar(paySpd)) {
            p_writer.writeElementString("PaySpd", paySpd);
        }
        p_writer.writeElementString("Memo", memo);
        p_writer.writeElementString("RefundTicketDate", refundTicketDate);
        p_writer.writeElementString("RefundTicketReason", refundTicketReason);
        p_writer.writeElementString("ReqBatchNO", reqBatchNO);
        p_writer.writeElementString("SubmitTime", submitTime);
    }
}
